package 创建数组;

public class demo5_数组最小值8 {
    public static void main(String[] args) {
    	int[] a = new int[5];
        a[0] = (int) (Math.random() * 100);
        a[1] = (int) (Math.random() * 100);
        a[2] = (int) (Math.random() * 100);
        a[3] = (int) (Math.random() * 100);
        a[4] = (int) (Math.random() * 100);
    	int min=a[0];
        for(int index=0;index<a.length;index++){
            if(min>a[index]){
                min=a[index];
                 
            }
             
        }
        System.out.println(min);
    }
}